package com.kfgj.hkp.common.dataaccess.redis;

import com.fasterxml.jackson.core.JsonProcessingException;

import java.io.IOException;
import java.util.Date;

/**
 * Created by liwensihan on 2018/5/17.
 */
public interface IRedisDao<T> {

    void saveEntity(String key, T t) throws JsonProcessingException;

    T parseEntity(String key) throws IOException;

    void setTimeout(String key, long timeoutSecond);

    void setTimeout(String key, Date date);
}
